package org.idea.eaglemq.client.common;

import org.idea.eaglemq.common.remote.BrokerNettyRemoteClient;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author LunBoWang
 * @Date: Created at 2024/7/16
 * @Description
 */
public class CommonCache {
    
    private static List<String> brokerAddressList;
    private static Map<String, BrokerNettyRemoteClient> brokerNettyRemoteClientMap = new ConcurrentHashMap<>();


    public static Map<String, BrokerNettyRemoteClient> getBrokerNettyRemoteClientMap() {
        return brokerNettyRemoteClientMap;
    }

    public static void setBrokerNettyRemoteClientMap(Map<String, BrokerNettyRemoteClient> brokerNettyRemoteClientMap) {
        CommonCache.brokerNettyRemoteClientMap = brokerNettyRemoteClientMap;
    }

    public static List<String> getBrokerAddressList() {
        return brokerAddressList;
    }

    public static void setBrokerAddressList(List<String> brokerAddressList) {
        CommonCache.brokerAddressList = brokerAddressList;
    }
}
